import axios from '@/util/request'

export const deleteById = id =>{
    return axios({
        url:'/corporatePromotion/delete',
        method:'get',
        params:{id}
    })
}

export const queryPage = (name,pageNum,pageSize) =>{
    return axios({
        url:'/corporatePromotion/page',
        method:'get',
        params:{
            name,pageNum,pageSize
        }
    })
}

export const insertSave = data =>{
    return axios({
        url:'/corporatePromotion/add',
        method:'post',
        data:data
    })
}